package com.ykt.model;

import java.util.List;

public class Menu  extends BaseModel<Menu> {
	private static final long serialVersionUID = 1L;

    public static final String pid = "pid";
    public static final String url = "url";
    public static final String type = "type";
    public static final String seq = "seq";

    public static final Menu dao = new Menu();


    /**
	 * 获取子菜单
	 * @return
	 */
	public List<Menu> getSubList(){
		String sql ="select * from menu where pid = ?";
		return Menu.dao.find(sql,get("id"));
	}
}
